//
//  libray.m
//  03-homeWorkNSString NSArray NSMutableArray
//
//  Created by 韩旭 on 16/7/6.
//  Copyright © 2016年 基础. All rights reserved.
//

#import "libray.h"

@implementation libray
- (void)dealloc {
    [_name release];
    [super dealloc];
}
- (instancetype)initWithName:(NSString *)name Price:(NSInteger)price {
    self = [super init];
    if (self) {
        _price = price;
        _name = name;
    }
    return self;
}
+ (instancetype)librayWithName:(NSString *)name Price:(NSInteger)price {
    return [[[libray alloc] initWithName:name Price:price] autorelease];
}
- (void)outPut {
    
    NSLog(@"name = %@ - age = %ld", self.name, self.price);
    
}
@end
